<?php



class ZonesMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ZonesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('zones');
		$tMap->setPhpName('Zones');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ZONE_ID', 'ZoneId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ZONE_COUNTRY_ID', 'ZoneCountryId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ZONE_CODE', 'ZoneCode', 'string', CreoleTypes::VARCHAR, true, 32);

		$tMap->addColumn('ZONE_NAME', 'ZoneName', 'string', CreoleTypes::VARCHAR, true, 32);

	} 
} 